<?php
/**
 * @OA\Get(
 *   path="/Auth/list",
 *   tags={"菜单管理"},
 *   summary="菜单列表",
 *   description="菜单列表",
 *   operationId="getAuthList",
 *     @OA\Parameter(name="Access-Token", in="header", description="授权access-token" , required=true, @OA\Schema(type="string", default="")),
 *   @OA\Parameter(name="page", description="页数", in="query", @OA\Schema(type="integer", default="1")),
 *   @OA\Parameter(name="size", description="每页显示数量", in="query", @OA\Schema(type="integer", default="15")),
 *   @OA\Response(
 *          response=200,
 *          description="request success",
 *          @OA\JsonContent(type="object",
 *              @OA\Property(property="msg", type="string",description="消息提示"),
 *              @OA\Property(property="code", type="integer",description="http状态码"),
 *              @OA\Property(property="success", type="boolean",description="请求是否成功"),
 *              @OA\Property(property="data", type="array",
 *                  @OA\Items(type="object",
 *                      @OA\Property(property="id", type="integer",description="id"),
 *                      @OA\Property(property="name", type="string",description="菜单名称"),
 *                      @OA\Property(property="parent_id", type="integer",description="上级菜单"),
 *                      @OA\Property(property="sort", type="integer",description="排序"),
 *                      @OA\Property(property="module", type="string",description="所属模块"),
 *                      @OA\Property(property="url", type="string",description="url地址"),
 *                      @OA\Property(property="code", type="integer",description="url标志"),
 *                      @OA\Property(property="is_auth_hide", type="integer",description="是否在授权的时候隐藏"),
 *                      @OA\Property(property="order", type="string",description="url拼接"),
 *                      @OA\Property(property="type", type="string",description="菜单类型"),
 *                      @OA\Property(property="icon", type="string",description="图标"),
 *                      @OA\Property(property="status", type="integer",description="状态"),
 *                      @OA\Property(property="create_time", type="string",description="创建时间"),
 *                      @OA\Property(property="update_time", type="string",description="更新时间"),
 *                      @OA\Property(property="children", type="object",description="子菜单"),
 *                  ),
 *              ),
 *          ),
 *       ),
 *   @OA\Response(response="40001", description="暂无数据"),
 *
 * )
 */

/**
 * @OA\Post(
 *  path="/Auth/add",
 *  tags={"菜单管理"},
 *  summary="新增菜单",
 *  description="新增菜单",
 *  @OA\Parameter(name="Access-Token", in="header", description="授权access-token" , required=true, @OA\Schema(type="string", default="")),
 *  @OA\RequestBody(
 *      @OA\MediaType(
 *          mediaType="multipart/form-data",
 *          @OA\Schema(
 *              @OA\Property(description="菜单名称", property="name", type="string", default=""),
 *              @OA\Property(description="所属上级", property="parent_id", type="integer", default=""),
 *              @OA\Property(description="所属模块", property="module", type="string", default=""),
 *              @OA\Property(description="url", property="url", type="string", default=""),
 *              @OA\Property(description="url标志", property="code", type="string", default=""),
 *              @OA\Property(description="权限类型", property="type", type="string", default=""),
 *              @OA\Property(description="图标", property="icon", type="string", default=""),
 *              @OA\Property(description="状态：0-禁用1-启用", property="status", type="string", default="1"),
 *              required={"name","parent_id","module","url","code","type"}
 *          ),
 *       )
 *     ),
 *     @OA\Response(response="200", description="request success"),
 *     @OA\Response(response="406", description="详见具体返回错误"),
 *     @OA\Response(response="500", description="request error"),
 * )
 */

/**
 * @OA\Put(
 *      path="/Auth/edit",
 *      tags={"菜单管理"},
 *      summary="菜单编辑",
 *      description="菜单编辑",
 *       @OA\Parameter(name="Access-Token", in="header", description="授权access-token", @OA\Schema(type="string", default="")),
 *      @OA\RequestBody(
 *          @OA\MediaType(
 *              mediaType="multipart/form-data",
                 @OA\Schema(
 *                  @OA\Property(description="菜单名称", property="name", type="string", default=""),
 *              @OA\Property(description="所属上级", property="parent_id", type="integer", default=""),
 *              @OA\Property(description="所属模块", property="module", type="string", default=""),
 *              @OA\Property(description="url", property="url", type="string", default=""),
 *              @OA\Property(description="url标志", property="code", type="string", default=""),
 *              @OA\Property(description="权限类型", property="type", type="string", default=""),
 *              @OA\Property(description="图标", property="icon", type="string", default=""),
 *              @OA\Property(description="状态：0-禁用1-启用", property="status", type="string", default="1"),
 *              required={"name","parent_id","module","url","code","type"}
 *              )
 *          )
 *      ),
 *      @OA\Response(response="200", description="request success"),
 *     @OA\Response(response="406", description="详见具体返回错误"),
 *     @OA\Response(response="500", description="request error"),
 * )
 */

/**
 * @OA\Delete(path="/Auth/del",
 *   tags={"菜单管理"},
 *   summary="菜单删除",
 *   description="菜单删除",
 *      @OA\Parameter(name="Access-Token", in="header", description="授权access-token", @OA\Schema(type="string", default="")),
 *      @OA\Parameter(description="菜单id",name="id",in="query",required=true,@OA\Schema(type="integer",minimum=1)
 *   ),
 *      @OA\Response(response="200", description="request success"),
 *     @OA\Response(response="406", description="详见具体返回错误"),
 *     @OA\Response(response="500", description="request error"),
 * )
 */





